package com.sunny.example.hwrealexame;

import java.util.Arrays;
import java.util.List;
import java.util.Scanner;
import java.util.TreeSet;
import java.util.function.Function;
import java.util.stream.Collectors;

public class Exame8_配出最小绝对值 {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNext()) {
            String input = scanner.nextLine();
            String[] strs = input.split(" ");
            List<Integer> list = Arrays.stream(strs).map(new Function<String, Integer>() {
                @Override
                public Integer apply(String s) {
                    return Integer.parseInt(s);
                }
            }).collect(Collectors.toList());

            TreeSet<Integer> result = new TreeSet<>();
            int tmp = Integer.MAX_VALUE;
            for (int i = 0; i < list.size() - 1; i++) {
                for (int j = i + 1; j < list.size(); j++) {
                    Integer a = list.get(i);
                    Integer b = list.get(j);
                    int sum = Math.abs(a + b);
                    if (sum < tmp && a != b) {
                        tmp = sum;
                        result.clear();
                        result.add(a);
                        result.add(b);
                    }

                }
            }

            for (Integer integer : result) {
                System.out.print(integer + " ");
            }
            System.out.print(result.size());
        }
    }
}
